﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CustomerManager.aspx.cs" Inherits="UI.Admin.CustomerManager" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="container body-content">
        邮箱：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <br />
        手机：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <br />
        昵称：<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" Text="添加测试用户" OnClick="Button1_Click" />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="CustomerId" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="CustomerId" HeaderText="CustomerId" InsertVisible="False" ReadOnly="True" SortExpression="CustomerId" />
                <asp:BoundField DataField="CustomerName" HeaderText="CustomerName" SortExpression="CustomerName" />
                <asp:BoundField DataField="CustomerEmail" HeaderText="CustomerEmail" SortExpression="CustomerEmail" />
                <asp:BoundField DataField="CustomerMobile" HeaderText="CustomerMobile" SortExpression="CustomerMobile" />
                <asp:BoundField DataField="CustomerClassID" HeaderText="CustomerClassID" SortExpression="CustomerClassID" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SouthWindConnectionString %>" SelectCommand="SELECT * FROM [Customer]"></asp:SqlDataSource>
    </div>

    <link href="Content/CommonStyleSheet.css" rel="stylesheet" type="text/css" />

</asp:Content>
